<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>
        .fileinput-button {
            position: relative;
            display: inline-block;
            overflow: hidden;
        }

        .fileinput-button input{
            position:absolute;
            right: 0px;
            top: 0px;
            opacity: 0;
            -ms-filter: 'alpha(opacity=0)';
            font-size: 200px;
        }
</style>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${cms.id}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label"><font color="red">*</font>标题：</label>
								<div class="col-sm-8">
									<input id="title" name="title" th:value="${cms.title}" class="form-control" type="text" required="required">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">内容描述：</label>
								<div class="col-sm-8">
									<textarea class="form-control" id="content" name="content" th:field = "${cms.content}"></textarea>
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">类型：</label>
								<div class="col-sm-8">
									<label class="radio-inline"><input id="type" name="type" type="radio" th:field="${cms.type}" value="1">图片</label>
									<label class="radio-inline"><input id="type" name="type" type="radio" th:field="${cms.type}" value="2">视频</label>
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">视频(小于20MB)：</label>
								<div class="col-sm-8">
									<span class="btn btn-success fileinput-button">
							            <span>上传</span>
							            <input id="initImageFile" type="file" name="file" data-url="/shop/product/uploadFile" multiple >
							        </span>
							        <input id="image" name="videoaddress" th:value="${cms.videoaddress}" class="form-control" type="text" readonly="readonly"/>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/shop/cms/edit.js">
	</script>
</body>
</html>
